#1
a = int(input())
print(a+1,a-1)
#2
a = int(input())
b = int(input())
h = 5
print(a*b*h)
#3
a = int(input())
b = int(input())
x = 0
print(a*(x**2)+b*x)
#4
a = int(input())
b = int(input())
a,b = b,a
print(a,b)